package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.EmpTrainExample.E_ASSESS_RESULT;
import static org.jsola.hr.example.EmpTrainExample.E_COMPANY_ID;
import static org.jsola.hr.example.EmpTrainExample.E_EMP_ID;
import static org.jsola.hr.example.EmpTrainExample.E_END_TIME;
import static org.jsola.hr.example.EmpTrainExample.E_REMAKE;
import static org.jsola.hr.example.EmpTrainExample.E_START_TIME;
import static org.jsola.hr.example.EmpTrainExample.E_TRAIN_ADDRESS;
import static org.jsola.hr.example.EmpTrainExample.E_TRAIN_CER_NAME;
import static org.jsola.hr.example.EmpTrainExample.E_TRAIN_CER_NUMBER;
import static org.jsola.hr.example.EmpTrainExample.E_TRAIN_COURSE;
import static org.jsola.hr.example.EmpTrainExample.E_TRAIN_DURATION;
import static org.jsola.hr.example.EmpTrainExample.E_TRAIN_MODE;
import static org.jsola.hr.example.EmpTrainExample.E_TRAIN_ORG_NAME;
import static org.jsola.hr.example.EmpTrainExample.M_ASSESS_RESULT_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.EmpTrainExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_REMAKE_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_TRAIN_ADDRESS_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_TRAIN_CER_NAME_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_TRAIN_CER_NUMBER_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_TRAIN_COURSE_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_TRAIN_DURATION_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_TRAIN_MODE_MAX;
import static org.jsola.hr.example.EmpTrainExample.M_TRAIN_ORG_NAME_MAX;
import static org.jsola.hr.example.EmpTrainExample.N_ASSESS_RESULT;
import static org.jsola.hr.example.EmpTrainExample.N_COMPANY_ID;
import static org.jsola.hr.example.EmpTrainExample.N_EMP_ID;
import static org.jsola.hr.example.EmpTrainExample.N_END_TIME;
import static org.jsola.hr.example.EmpTrainExample.N_REMAKE;
import static org.jsola.hr.example.EmpTrainExample.N_START_TIME;
import static org.jsola.hr.example.EmpTrainExample.N_TRAIN_ADDRESS;
import static org.jsola.hr.example.EmpTrainExample.N_TRAIN_CER_NAME;
import static org.jsola.hr.example.EmpTrainExample.N_TRAIN_CER_NUMBER;
import static org.jsola.hr.example.EmpTrainExample.N_TRAIN_COURSE;
import static org.jsola.hr.example.EmpTrainExample.N_TRAIN_DURATION;
import static org.jsola.hr.example.EmpTrainExample.N_TRAIN_MODE;
import static org.jsola.hr.example.EmpTrainExample.N_TRAIN_ORG_NAME;

/**
 * 员工培训记录
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【员工培训记录】的参数")
@Data
public class EmpTrainUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_TRAIN_COURSE, example = E_TRAIN_COURSE)
    @Length(max = 255, message = M_TRAIN_COURSE_MAX)
    private String trainCourse;

    @ApiModelProperty(notes = N_START_TIME, example = E_START_TIME)
    private Date startTime;

    @ApiModelProperty(notes = N_END_TIME, example = E_END_TIME)
    private Date endTime;

    @ApiModelProperty(notes = N_TRAIN_DURATION, example = E_TRAIN_DURATION)
    @Length(max = 255, message = M_TRAIN_DURATION_MAX)
    private String trainDuration;

    @ApiModelProperty(notes = N_TRAIN_ORG_NAME, example = E_TRAIN_ORG_NAME)
    @Length(max = 255, message = M_TRAIN_ORG_NAME_MAX)
    private String trainOrgName;

    @ApiModelProperty(notes = N_ASSESS_RESULT, example = E_ASSESS_RESULT)
    @Length(max = 255, message = M_ASSESS_RESULT_MAX)
    private String assessResult;

    @ApiModelProperty(notes = N_TRAIN_ADDRESS, example = E_TRAIN_ADDRESS)
    @Length(max = 255, message = M_TRAIN_ADDRESS_MAX)
    private String trainAddress;

    @ApiModelProperty(notes = N_TRAIN_MODE, example = E_TRAIN_MODE)
    @Length(max = 255, message = M_TRAIN_MODE_MAX)
    private String trainMode;

    @ApiModelProperty(notes = N_TRAIN_CER_NAME, example = E_TRAIN_CER_NAME)
    @Length(max = 255, message = M_TRAIN_CER_NAME_MAX)
    private String trainCerName;

    @ApiModelProperty(notes = N_TRAIN_CER_NUMBER, example = E_TRAIN_CER_NUMBER)
    @Length(max = 255, message = M_TRAIN_CER_NUMBER_MAX)
    private String trainCerNumber;

    @ApiModelProperty(notes = N_REMAKE, example = E_REMAKE)
    @Length(max = 2147483647, message = M_REMAKE_MAX)
    private String remake;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

